package cn.edu.bupt.freewings.forum.front.beans;

import cn.edu.bupt.freewings.forum.common.UserType;

public class UserBean {
	private UserType.User user;
	public UserBean(UserType.User user){
		this.user = user;
	}
	
	public String getName(){
		return user.getName();
	}
	
	public String getNickName(){
		return user.hasNickName() ? user.getNickName() : "";
	}
	
	public Integer getId(){
		return user.getId();
	}
	
}
